package com.liu.test.service.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liu.test.entity.LdrUser;
import com.liu.test.mapper.UserMapper;
import com.liu.test.service.LdrUserService;
import org.springframework.stereotype.Service;

@Service
public class LdrUserServiceImpl extends ServiceImpl<UserMapper, LdrUser> implements LdrUserService {
    @Override
    public LdrUser getUserInfo() {
        LambdaQueryWrapper<LdrUser> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(LdrUser::getUserId,"123456789");
        LdrUser user = this.getOne(queryWrapper);
        //LdrUser user = list(queryWrapper).get(0);
        return user;
    }
}
